package net.jeeeyul.eclipse.googledic.internal;

import java.util.HashSet;

import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.jobs.Job;

public class GoogleTranslationJob extends Job {
	private ITranslationTarget target;
	private HashSet<ITranslationListener> listeners = new HashSet<ITranslationListener>();

	public void addTranslationListener(ITranslationListener listener) {
		this.listeners.add(listener);
	}

	public void removeTranslationListener(ITranslationListener listener) {
		this.listeners.remove(listener);
	}

	public GoogleTranslationJob(ITranslationTarget targetLanguage) {
		super("Translating through Google"); // $NON-NLS-1$
		this.target = targetLanguage;
	}

	@Override
	protected IStatus run(IProgressMonitor monitor) {
		monitor.beginTask("Translation", IProgressMonitor.UNKNOWN);

		
		return Status.OK_STATUS;
	}

}
